package constants

// 是否删除
const (
	IS_DELETED_FALSE = 1 //未删除
	IS_DELETED_TRUE  = 2 //已删除

	UNDO_STATUS = 0
	DONE_STATUS = 1
	FAIL_STATUS = 2

	CUSTOM_CLAIMS_KEY = "custom_claims"

	Device             = "device"
	FromDevicePc       = "pc"
	FromDeviceClueMini = "clue-mini"

	MICRO_GFYX_USER_SERVICE  = "micro-gfyx-user-service"
	MICRO_GFYX_OPPTY_SERVICE = "micro-gfyx-oppty-service"

	LoginUserId         = "login_user_id"
	LoginUserTenantCode = "login_user_tenant_code"
	LoginUserInfo       = "login_user_info"
	LoginUserToken      = "login_user_token"

	ClientIp = "client_ip"

	CrowdTypeWinBid    = "中标单位"
	CrowdTypeDeveloper = "甲方单位"
	CrowdTypeRpa       = "RPA"
)

const (
	IntentionA       = "A"
	IntentionB       = "B"
	IntentionC       = "C"
	IntentionD       = "D"
	IntentionE       = "E"
	IntentionF       = "F"
	IntentionARemark = "A级(有明确意向)"
	IntentionBRemark = "B级(可能有意向)"
	IntentionCRemark = "C级(明确拒接)"
	IntentionDRemark = "D级(用户忙)"
	IntentionERemark = "E级(拨打失败)"
	IntentionFRemark = "F级(无效客户)"
)

func GetIntentionRemark(intention string) string {
	switch intention {
	case IntentionA:
		return IntentionARemark
	case IntentionB:
		return IntentionBRemark
	case IntentionC:
		return IntentionCRemark
	case IntentionD:
		return IntentionDRemark
	case IntentionE:
		return IntentionERemark
	case IntentionF:
		return IntentionFRemark
	default:
		return ""
	}
}

const (
	FinishStatus0        = 0  // 已接听
	FinishStatus1        = 1  // 拒接
	FinishStatus2        = 2  // 无法接通
	FinishStatus3        = 3  // 主叫号码不可以
	FinishStatus4        = 4  // 空号
	FinishStatus5        = 5  // 关机
	FinishStatus6        = 6  // 占线
	FinishStatus7        = 7  // 停机
	FinishStatus8        = 8  // 未接
	FinishStatus9        = 9  // 主叫欠费
	FinishStatus10       = 10 // 呼损
	FinishStatus11       = 11 // 黑名单
	FinishStatus12       = 12 // 天盾拦截
	FinishStatus22       = 22 // 线路盲区
	FinishStatus0Remark  = "已接听"
	FinishStatus1Remark  = "拒接"
	FinishStatus2Remark  = "无法接通"
	FinishStatus3Remark  = "主叫号码不可以"
	FinishStatus4Remark  = "空号"
	FinishStatus5Remark  = "关机"
	FinishStatus6Remark  = "占线"
	FinishStatus7Remark  = "停机"
	FinishStatus8Remark  = "未接"
	FinishStatus9Remark  = "主叫欠费"
	FinishStatus10Remark = "呼损"
	FinishStatus11Remark = "黑名单"
	FinishStatus12Remark = "天盾拦截"
	FinishStatus22Remark = "线路盲区"
)

const (
	ProfitClueRadarProvince   = "ClueRadarProvince"   //线索雷达省份版
	ProfitClueRadarNationwide = "ClueRadarNationwide" //线索雷达全国版
	ProfitMarketReport        = "MarketReport"        //市场洞察
	ProfitYcgMemberAccount    = "YcgMemberAccount"    //云采购平台会员赠送账户数
	ProfitUserAccount         = "UserAccount"         //单独购买或赠送的账号
	ProfitAIOutbound          = "AIOutbound"          // AI外呼
)

func GetFinishStatusRemark(status int32) string {
	switch status {
	case FinishStatus0:
		return FinishStatus0Remark
	case FinishStatus1:
		return FinishStatus1Remark
	case FinishStatus2:
		return FinishStatus2Remark
	case FinishStatus3:
		return FinishStatus3Remark
	case FinishStatus4:
		return FinishStatus4Remark
	case FinishStatus5:
		return FinishStatus5Remark
	case FinishStatus6:
		return FinishStatus6Remark
	case FinishStatus7:
		return FinishStatus7Remark
	case FinishStatus8:
		return FinishStatus8Remark
	case FinishStatus9:
		return FinishStatus9Remark
	case FinishStatus10:
		return FinishStatus10Remark
	case FinishStatus11:
		return FinishStatus11Remark
	case FinishStatus12:
		return FinishStatus12Remark
	case FinishStatus22:
		return FinishStatus22Remark
	default:
		return ""
	}
}

const (
	// OrderTypeCustomerExport 订单类型，枚举值：1-找客户_导出，2-找项目_导出，3-找招标_导出，4-客户详情-招标采购_导出，5-客户详情-项目数据-拿地阶段_导出，6-客户详情-项目数据-立项|开工阶段_导出，7-客户详情-项目数据-开盘阶段_导出，8-客户详情-合作供方_导出，9-客户详情-合作案例_导出
	OrderTypeCustomerExport                  = 1
	OrderTypeProjectExport                   = 2
	OrderTypeBidExport                       = 3
	OrderTypeCustomerDetailPurchaseExport    = 4
	OrderTypeCustomerDetailLandExport        = 5
	OrderTypeCustomerDetailBuildExport       = 6
	OrderTypeCustomerDetailSaleExport        = 7
	OrderTypeCustomerDetailCooperationExport = 8
	OrderTypeCustomerDetailCaseExport        = 9
)
